package cn.designmode.adapter;

public class Adapter implements Target {

    private Handler<Adaptee> handler;

    public Adapter(Handler<Adaptee> handler) {
        this.handler = handler;
    }

    @Override
    public Media request(Object o) {
        return handler.handle(o).specificRequest(o);
    }

}
